package com.allen.imsystem.user.service;

import com.allen.imsystem.user.model.param.EditUserInfoParam;
import com.allen.imsystem.user.model.pojo.UserInfo;
import com.allen.imsystem.user.model.vo.UserInfoView;
import com.baomidou.mybatisplus.extension.service.IService;
import org.springframework.web.multipart.MultipartFile;

/**
 * @ClassName UserInfoService
 * @Description
 * @Version 1.0
 */
public interface UserInfoService extends IService<UserInfo> {

    /**
     * 根据uid查询用户信息
     */
    UserInfoView findUserInfoView(String uid);

    /**
     * 从数据库获取UserInfoView
     */
    UserInfoView findUserInfoViewFromDB(String uid);

    /**
     * 头像上传/更换
     */
    String uploadAvatar(MultipartFile multipartFile, String uid);

    /**
     * 用户信息更改
     */
    void updateUserInfo(EditUserInfoParam editUserInfoParam, String uid);


    /**
     * 获取自己的信息
     */
    EditUserInfoParam getSelfInfo(String uid);
}
